package com.hedl.classroom.service;

import com.alipay.api.AlipayApiException;
import com.hedl.classroom.dto.PayRecordDto;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

/**
 * @author Big Watermelon
 * @description 订单支付接口
 * @date 2023/12/18/23:57
 */
public interface OrderPaymentService {

    void requestpay(String payNo,HttpServletResponse httpServletResponse) throws AlipayApiException, IOException;

    PayRecordDto payresult(String payNo) throws AlipayApiException;

    /**
     * 接收支付结果通知
     * @param httpServletRequest
     * @param httpServletResponse
     * @throws AlipayApiException
     * @throws IOException
     */
    void receivenotify(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws AlipayApiException, IOException;

}
